<?php
namespace Home\Controller;

use Home\Controller\CommonController;

class IndexController extends CommonController
{
    public function index()
    {
    	// dump(session("user_id"));
    	// dump(session("stuInfo"));
       
    	// 精选文章 where is_solve = 1 order by clickgood_num desc,view_num desc 
    	$popular_asks = D("Ask")->getPopularAsk();

    	// 新提出来的问题   where is_solve = 0 order by last_time desc,public_time desc
    	$last_asks = D("Ask")->getLastAsk();




    	$this->assign("popular_asks", $popular_asks);
    	$this->assign("last_asks", $last_asks);
        $this->display();
    }
}